/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.max.cjs.service.implement;

import java.io.Serializable;
import java.util.List;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Disjunction;
import org.max.cjs.dao.interfac.IScheduleDao;
import org.max.cjs.model.Schedule;
import org.max.cjs.service.interfac.IScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 *
 * @author user
 */
public class ScheduleService implements IScheduleService {
    
    @Autowired
    @Qualifier("scheduleDao")
    IScheduleDao scheduleDao;
    
    @Override
    public int save(Schedule object) throws Exception {
        return scheduleDao.save(object);
    }

    @Override
    public void update(Schedule object) throws Exception {
        scheduleDao.update(object);
    }

    @Override
    public void saveOrUpdate(Schedule object) throws Exception {
        scheduleDao.saveOrUpdate(object);
    }

    @Override
    public void delete(Schedule object) throws Exception {
        scheduleDao.delete(object);
    }

    @Override
    public Schedule getById(Serializable id) throws Exception {
        return scheduleDao.getById(id);
    }

    @Override
    public Schedule getByHQL(String HQL) throws Exception {
        return scheduleDao.getByHQL(HQL);
    }

    @Override
    public List list() throws Exception {
       return scheduleDao.list();
    }

    @Override
    public List listHQL(String hql, Class clazz) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listSQL(String SQL) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listHQL(String hql) throws Exception {
        return scheduleDao.listHQL(hql);
    }

    @Override
    public List listHQL(String hql, int lazyChargeOption, Object object) throws Exception {
        return scheduleDao.listHQL(hql, lazyChargeOption, object); 
    }

    @Override
    public int HQLexecute(String hql) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public int SQLexecute(String SQL) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listHQL(String HQL, int firstResult, int maxResult) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listCriterion(List<Criterion> listCriterion) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List listCriterion(List<Criterion> listCriterion, String[] alias, Disjunction disjunction) throws Exception {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
